<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<script type="text/javascript">
function tuichu(){
	$.ajax({
		url: "${basePath}/logout", 
		type:"post",
		async: false,
		contentType: "application/x-www-form-urlencoded; charset=utf-8", 
		dataType:"text", 
		success: function(data){
			window.location.href="http://www.weilaiwd.com/";
		}});
}

</script>

</head>
<body>
<!--<jsp:include page="login.jsp"></jsp:include>-->
<!--头部开始-->
<div id="toptiao">
  <div class="topleft">
  <c:choose>
		  <c:when test="${sessionScope.login_user_id eq null }">
			  您好，欢迎来到未来网贷！&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.weilaiwd.com/login.jspx?returnUrl=http://www.weilaiwd.com/member/index.jspx" title="登录" rel="nofollow">登录</a> | <a href="http://www.weilaiwd.com/register.jspx" title="注册" rel="nofollow">注册</a> 
		  </c:when>
		  <c:otherwise>
			欢迎您: ${sessionScope.login_user_name} &nbsp; <a href="http://www.weilaiwd.com/member/index.jspx">会员中心</a> &nbsp;  
				<a href="javascript:void(0);" onclick="tuichu();">退出</a>
		  </c:otherwise>
	</c:choose>
  </div>
  <div class="topright">网贷咨询热线：400-010-0816</div>
</div>
<div id="head-wrap">
  <div class="head">
    <div class="logo"><a href="http://www.weilaiwd.com" title="未来网贷"><img src="${basePath }/images/logo.png" ></a></div>
    <div class="search">
      <form name="search" id="search" action="${basePath }/product/headSearch" method="post" >   
         <input class="text" name="word" id="search_title" type="text" placeholder="请输入关键词" >
         <input id="lanmu" name="lanmu" type="hidden" />
         <dl class="select">
          <dt>平台</dt>
          <dd >
              <ul>
                  <li><a href="javascript:;" value="product">产品</a></li>
                  <li><a href="javascript:;" value="zixun">资讯</a></li>
                  <li><a href="javascript:;" value="luntan">帖子</a></li>		
              </ul>
          </dd>
      </dl>
        </form>
      
    </div>
    <div class="search-btn"><a onclick="$('#search').submit();" target="_blank" >搜索</a></div>
    <div class="share"><span>分享至：</span><img src="${basePath }/images/share1.png" ></div>

  </div>
  <div class="nav">
      <ul>
        <li><a href="http://www.weilaiwd.com" class="visited1" title="未来网贷">首页</a></li><li class="xian"></li>
	    <c:forEach items="${topChannels }" var="channel" varStatus="status">
		    <li><a href="${channel.url }" class="visited${status.index+2 }" title="${channel.name }">${channel.name }</a></li><li class="xian"></li>
	    </c:forEach>
      </ul>
  </div>
</div>
<!--banner广告
<div class="ad"><a href="${ad.url }"><img src="${imgHost }${ad.img }" ></a></div>-->
<!--头部结束-->
<script>
$(function(){
	$(".select").each(function(){
		var dt = $(this).find("dt");
		var dd = $(this).find("dd");
			dd.find("a").click(function(){
				dt.html($(this).html());
				$("#lanmu").val($(this).attr("value"));
			});     //选择效果（如需要传值，可自定义参数，在此处返回对应的“value”值 

		});
});

</script>
